/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author gang
 */
public class CommonUtil {
   
    /*
    时间系列
    */  
    
    
    /*
    获取yyyy-MM-dd HH:mm:ss格式时间
    @param java.util.date
    @return string
    */
    public static String getDayY_M_D_HMS(Date value) {
                if (value == null) {
                        return "";
                }
                DateFormat FormatDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                return FormatDate.format(value);
        }
}
